<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>控制台</title>
<jsp:include page="../header.jsp"></jsp:include>

<script type="text/javascript">
	var uid = 0;
</script>
<style>
.backcolor{
background-color: #5cacee;
}
</style>
</head>

<body>
	<div class="contextBox">
		
		<div class="view-product">
			<div class="message-manage">
				<div class="manage-record margin-lr">
					<div class="select-table sel_small">
						<form
							action="<%=request.getContextPath()%>/supervise/getAddManager.do"
							method="get">
					    	<table class="TableList" width="100%" align="center">  
								<tr>
									<td><input id="addAction" type="submit" value="新增用户"></td>
								</tr>
							</table>
						</form>
					</div>

					<div class="clear"></div>
					<div class="offcial-table margin-top clearfix">
						<div class="tr-th clearfix">

						<table class="TableList" width="100%" align="center">
		                          <tbody><tr class="TableContent">
										<th>编号</th>
										<th>管理员</th>
										<th>角色权限</th>
										<th>登录状态</th>
										<th>操作</th>
									</tr>
								
								<tbody>
									<c:forEach items="${list}" var="u">
										<tr style="white-space: nowrap;">
											<td>${u.id}</td>
											<td>${u.manger}</td>
											<td>${u.roleId}</td>
											<td><c:choose>
													<c:when test="${u.isLogin == 1}">
														<span>允许登录</span>
													</c:when>
													<c:otherwise>
														<span>不允许登录</span>
													</c:otherwise>
												</c:choose></td>
											<td align="center"><a
												href="<%=request.getContextPath()%>/supervise/getManagerID.do?id=${u.id}">编辑</a>
											</td>
										</tr>
									</c:forEach>
								</tbody>
							</table>
						</div>
					</div>
				</div>
				<div class="clear"></div>
				<div class="show-page padding-big-right hidden">
					<div class="page"></div>
				</div>
			</div>
		</div>
	</div>
</body>

</html>